@import './resource.theme.less';

@prefix-cls: resour;
@prefix-table: resour-table;

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.@{prefix-cls} {
  &-row {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    .overflow();
  }

  &-rowTwo {
    flex: auto;
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0px !important;

    .ant-col {
      // width: 100%;
      // height: 100%;
      .overflow();
    }

    .ant-col-6 {
      padding-left: 0px !important;
    }

    .ant-col-18 {
      padding-right: 0px !important;
    }
  }

  &-titleCol {
    // height: 8%;
    .overflow();
  }

  &-bottomCol {
    flex: auto;
    width: 100%;
    height: 100%;
    .overflow();
  }

  &-divBox {
    width: 100%;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  &-stepTitle {
    height: 100%;
    padding: 0.75em;
    display: flex;
    align-items: center;
    margin: 0px 30px;

    .ant-steps-item-container {
      cursor: pointer;
    }

    .ant-steps-item-title {
      font-weight: 600;
    }

    .ant-steps-item-title:hover {
      transform: scale(0.9);
    }
  }

  &-tree {
    &-box {
      width: 100%;
      height: 100%;
      background: #ffffff;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    &-header {
      width: 100%;
      display: flex;
      padding: 0.5rem 1rem;
      justify-content: space-between;
    }

    &-option {
      display: flex;
      align-items: center;
    }

    &-body {
      flex: auto;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      // padding: 0px 12px 12px 12px;
      width: 100%;

      &-searchInput {
        padding: 0rem 1rem;
      }
    }

    &-child {
      flex: auto;
      padding-top: 8px;
      overflow: hidden;

      .ant-tree-node-content-wrapper {
        overflow: hidden;
      }
    }
  }

  &-table {
    &-box {
      width: 100%;
      height: 100%;
      background: #ffffff;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    &-header {
      width: 100%;
      display: flex;
      padding: 0.5rem 1rem;
      align-items: center;
      justify-content: space-between;
    }

    &-search {
      display: flex;
      align-items: center;

      .ant-input-search {
        .ant-btn {
          border-color: #d9d9d9;
        }
      }
    }

    &-content {
      flex: auto;
      overflow: hidden;
      // padding: 0px 12px 12px 13px;
    }
  }
}

.res-popover {
  // max-width: 15%;
  border-radius: 14px;

  .ant-popover-inner {
    border-radius: 14px;

    .ant-popover-title {
      text-align: center;
      // font-size: 16px;
      font-weight: 600;
      border-bottom: 1px dashed #fff;
    }
  }

  .ant-popover-arrow-content::before {
    background: linear-gradient(to left, rgb(222 222 222) 50%, rgb(222 222 222) 50%) no-repeat -10px -10px;
  }

  p {
    margin-bottom: 5px;
    word-break: break-all;
  }

}